---
layout: "default"
title: "Unicode"
description: "Swift documentation for 'Unicode': A namespace for Unicode utilities."
keywords: "Unicode,enum,swift,documentation,Encoding,Parser"
root: "/v4.2"
---

<div class="intro-declaration"><code class="language-swift">enum Unicode</code></div>

<div class="discussion comment">
    <p>A namespace for Unicode utilities.</p>
</div>

<table class="standard">

<tr>
<th id="aliases">Associated Types</th>
<td>
<span id="aliasesmark"></span>
<div class="declaration">
<code class="language-swift">Encoding = _UnicodeEncoding</code>
</div>
<div class="declaration">
<code class="language-swift">Parser = _UnicodeParser</code>
</div>
</td>
</tr>

<tr>
<th>Nested Types</th>
<td><code class="nested">Unicode.UTF8, Unicode.UTF16, Unicode.Scalar, Unicode.UTF32, Unicode.ASCII, Unicode.ParseResult, Unicode.UTF8.ForwardParser, Unicode.UTF8.ReverseParser, Unicode.UTF16.ForwardParser, Unicode.UTF16.ReverseParser, Unicode.Scalar.UTF16View, Unicode.UTF32.Parser, Unicode.ASCII.Parser</code></td>
</tr>

<tr>
<th>Import</th>
<td><code class="language-swift">import Swift</code></td>
</tr>

</table>









